]> git.r.bdr.sh - rbdr/map/blobdiff - Map/Presentation/Base Components/MapRender/MapBlockers.swift
Map 3 first commit: files, groups and layout
[rbdr/map] / Map / Presentation / Base Components / MapRender / MapBlockers.swift
index d943ba8bb61a8a72f00379518b111c10a17659b7..efd84fae4ef2e7a2864ef65e5e4d37257872aec2 100644 (file)
@@ -31,13 +31,11 @@ struct MapBlockers: View {
   }
 }
 
-struct MapBlockers_Previews: PreviewProvider {
-  static var previews: some View {
-    MapBlockers(
-      mapSize: CGSize(width: 400.0, height: 400.0), vertexSize: CGSize(width: 25.0, height: 25.0),
-      blockers: [
-        Blocker(id: 0, position: CGPoint(x: 50.0, y: 50.0)),
-        Blocker(id: 1, position: CGPoint(x: 10.0, y: 20.0)),
-      ])
-  }
+#Preview {
+  MapBlockers(
+    mapSize: CGSize(width: 400.0, height: 400.0), vertexSize: CGSize(width: 25.0, height: 25.0),
+    blockers: [
+      Blocker(id: 0, position: CGPoint(x: 50.0, y: 50.0)),
+      Blocker(id: 1, position: CGPoint(x: 10.0, y: 20.0)),
+    ])
 }